/**
 * 项目 开发过程中打包配置
 */
const { merge } = require('webpack-merge')
const base = require('./webpack.base.js')
const path = require('path')

module.exports = merge(base, {
  //模式
  mode: 'development',
  //sourcemap模式
  devtool: 'inline-source-map',
  //开发服务
  devServer: {
    contentBase: path.resolve(__dirname, '../dist'),
    open: true
  }
})